package com.boil.demo.ioc.car03;
// +-------------------------------------------------------------
// | Created by IntelliJ IDEA.
// +-------------------------------------------------------------
// | Author      : linhai
// +-------------------------------------------------------------
// | Date        : 2019-05-05 22:50
// +-------------------------------------------------------------
// | Description :
// +-------------------------------------------------------------

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestCar {



    @Test
    public void TestCar03() {

        ApplicationContext context =
                new ClassPathXmlApplicationContext("applicationContext03.xml");

        Car car = (Car) context.getBean("car");

        car.run();
    }
}
